package com.ludomancy.starwave;

import java.awt.Graphics;

public class IdleAnimation implements Animation
{
	private Ship ship;
	
	public IdleAnimation(Ship ship)
	{
		this.ship = ship;
	}
	
	public void start()
	{
		
	}
	
	public void update()
	{
	}
	
	public boolean isOver()
	{
		return true;
	}
	
	public void paint(Graphics g)
	{
		int x = ship.px * Settings.TILE_SIZE;
		int y = ship.py * Settings.TILE_SIZE;
		if(!ship.isDead())
		{
			ship.paint(g, x, y);
		}
		else
		{
			ship.paintDead(g, x, y);
		}
	}
}
